package cn.scxy.bookcity.controller;

import cn.scxy.bookcity.pojo.vo.PackListVO;
import cn.scxy.bookcity.pojo.vo.PmsCategoryListVO;
import cn.scxy.bookcity.service.IPackService;
import cn.scxy.bookcity.web.JsonResult;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 包装
 *
 * @author gzh
 * @version 1.0.0
 * @date 2022/11/30 21:40
 */
@RestController
@RequestMapping("/pack")
@Api(tags = "包装模块")
public class PackController {
    @Autowired
    private IPackService packService;

    @GetMapping("/allName")
    @ApiOperationSupport(order =401)
    @ApiOperation("查询所有包装名称")
    public JsonResult<List<PackListVO>> allName() {
        List<PackListVO> list = packService.allName();
        return JsonResult.ok(list);
    }
}
